package aconcagua.measure

class CanNotConvertMeasureException extends Exception {
	private sourceMeasure;
	private targetUnit;

	public CanNotConvertMeasureException(aSourceMeasure, aTargetUnit) {
		super("It is not possible to convert ${aSourceMeasure} to ${aTargetUnit}");
		sourceMeasure = aSourceMeasure;
		targetUnit = aTargetUnit;
	}
	
	public sourceMeasure() {
		return sourceMeasure;
	}
	
	public targetUnit() {
		return targetUnit;
	}
}
